package service.manager.impl;

import dao.manager.ReturnDao;
import dao.manager.impl.ReturnDaoImpl;
import entity.Borrow_books;
import service.manager.ReturnService;

/**
 * ReturnServiceImpl
 *
 * @author ChenYanMei
 * @version 2023/9/1
 */
public class ReturnServiceImpl implements ReturnService {
    private ReturnDao dao = new ReturnDaoImpl();

    /**
     * 查询逾期天数
     *
     * @param book_id 查询的书籍编号
     * @return 逾期天数
     */
    @Override
    public int overDate(int book_id) {
        return dao.overDate(book_id);
    }

    /**
     * 查询全部信息
     *
     * @param book_id
     * @return
     */
    @Override
    public Borrow_books selectAll(int book_id) {
        return dao.selectAll(book_id);
    }
}
